Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add option to pass credentials in as http header #23

Closed
wants to merge 1 commit into from
Closed

feat: Add option to pass credentials in as http header #23

wants to merge 1 commit into from

Conversation

scbrickley
Copy link
Contributor

Closes #22

@cla-bot
Copy link

cla-bot bot commented May 19, 2021

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to [email protected]. For more information, see https://github.com/trinodb/cla.

@martint martint requested a review from losipiuk May 19, 2021 16:48
Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good % maybe renaming the constant to trinoExtraCredentialHeader (it's different from authentication credentials and may be confusing).

Can you please add a test?
We can have something similar to https://github.com/trinodb/trino-go-client/blob/master/trino/trino_test.go#L45.

@losipiuk I assume we can't write an integration test for this?

@scbrickley
Copy link
Contributor Author

Thanks for the quick response! I'll get those changes up ASAP.

@cla-bot
Copy link

cla-bot bot commented May 19, 2021

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to [email protected]. For more information, see https://github.com/trinodb/cla.

@scbrickley
Copy link
Contributor Author

How long does it usually take for the CLA bot to update? I sent in a CLA as requested about 20 minutes ago.

@scbrickley
Copy link
Contributor Author

scbrickley commented May 20, 2021

Got a confirmation that my CLA was accepted. Do we need to run the bot again to get the check to pass?

@martint
Copy link
Member

martint commented May 20, 2021

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label May 20, 2021
@cla-bot
Copy link

cla-bot bot commented May 20, 2021

The cla-bot has been summoned, and re-checked this pull request!

Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvement @scbrickley. Please squash the changes into a single commit.

@losipiuk @nineinchnick Please take a look.

Copy link
Member

@losipiuk losipiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thanks.

@losipiuk
Copy link
Member

Merged as cbe5c3c (I droped feat: from commit message)

@reedip
Copy link

reedip commented Nov 13, 2023

Can we use this to pass JWT Token ? I don't see any option to authenticate with Bearer tokens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Add support to set X-Trino-Extra-Credential header
6 participants